// by Xeno
private "_marker";

if (!d_dont_show_player_markers_at_all) then {
	_d_show_player_marker = d_show_player_marker;
	if (_d_show_player_marker > 0) then {
		switch (_d_show_player_marker) do {
			case 1: {localize "MSG_DOM_MRKPLAYERNAMES" call XfGlobalChat};
			case 2: {localize "MSG_DOM_MRKPLAYERDOT" call XfGlobalChat};
			case 3: {localize "MSG_DOM_MRKPLAYERROLES" call XfGlobalChat};
			case 4: {localize "MSG_DOM_MRKPLAYERHEALTH" call XfGlobalChat};
		};
	};

	if (_d_show_player_marker == 0) then {
		localize "MSG_DOM_MRKPLAYERHIDING" call XfGlobalChat;
		sleep 2.123;
		{
			_marker = _x;
			_marker setMarkerPosLocal [0,0];
			_marker setMarkerAlphaLocal 0;
		} forEach d_player_entities;
		localize "MSG_DOM_MRKPLAYERHIDDEN" call XfGlobalChat;
	} else {
		{
			_marker = _x;
			_marker setMarkerAlphaLocal 1;
		} forEach d_player_entities;
	};
};